package com.jack.base.desiginmodel.decorator;

/**
 * Created by zhang_j on 2019/12/23
 */
public class main {

    public static void main(String[] args) {
        Shape circle = new CircleShape();

        Shape redCircle = new RedDecoratorShape(new CircleShape());
        Shape redRectangle = new RedDecoratorShape(new RectangleShape());

        circle.draw();

        redCircle.draw();

        redRectangle.draw();
    }
}
